copyright_msg db "Packet driver for the MICOM-Interlan NI5210, version ",'0'+(majver / 10),'0'+(majver mod 10),".",'0'+version,".",'0'+i82586_version,CR,LF
db "Portions Copyright 1988 The Board of Trustees of the University of Illinois",CR,LF,'$'
check_board:
mov SCP,1
mov dx,io_addr ; i/o address
add dx,EADDR_LEN ; look past the ethernet address.
in al,dx
mov bl,al ; assemble pattern to check
inc dx
in al,dx
mov bh,al
cmp bx,05500h ; pattern known to be there in ROM
jz have_5210_io
pop dx ;drop our return address
mov dx,offset no_5210_io_msg
jmp error
have_5210_io:
mov ax,base_addr
mov cx,2000h ;test only what we are going to use.
call memory_test
jz have_5210_mem
pop dx ;drop our return address
mov dx,offset no_5210_mem_msg
jmp error
have_5210_mem:
ret
no_5210_io_msg db "No 5210 found at that I/O address.",CR,LF,'$'
no_5210_mem_msg db "No 5210 found at that memory address.",CR,LF,'$'